package com.lagouedu.sevice;

import com.lagouedu.pojo.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient(name="lagou-service-code")
public interface CodeFeign {

    @RequestMapping("/api/code/validate/{email}/{code}")
    public R validate(@PathVariable("email") String email, @PathVariable("code") String code);
}
